<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改通道订单')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-channelOrder-edit" th:object="${channelOrder}">
            <div class="form-group">	
                <label class="col-sm-3 control-label">平台订单号：</label>
                <div class="form-control-static" th:text="*{ptOrderno}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">下游订单号：</label>
                <div class="form-control-static" th:text="*{childOrderno}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">商户编号：</label>
                <div class="form-control-static" th:text="*{businessId}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">交易金额：</label>
                <div class="form-control-static" th:text="*{amount}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">手续费：</label>
                <div class="form-control-static" th:text="*{businessFee}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">实际金额：</label>
                <div class="form-control-static" th:text="*{payAmount}">
                </div>
            </div>
             <div class="form-group">	
                <label class="col-sm-3 control-label">提交日期：</label>
                <div class="form-control-static" th:text="*{#dates.format(submitTime, 'yyyy-MM-dd HH:mm:ss')}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">成功日期：</label>
                <div class="form-control-static" th:text="*{#dates.format(successTime, 'yyyy-MM-dd HH:mm:ss')}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">交易通道：</label>
                <div class="form-control-static" th:text="*{jytd}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">交易银行：</label>
                <div class="form-control-static" th:text="*{jyyh}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">交易账号：</label>
                <div class="form-control-static" th:text="*{account}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">提交地址：</label>
                <div class="form-control-static" th:text="*{submitUrl}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">页面返回地址：</label>
                <div class="form-control-static" th:text="*{returnUrl}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">服务器通知地址：</label>
                <div class="form-control-static" th:text="*{serverUrl}">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">状态：</label>
                <div class="form-control-static" th:text="${@dict.getLabel('sys_order_status',channelOrder.orderStatus)}">
				</div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">数据状态：</label>
                <div class="form-control-static" th:text="${@dict.getLabel('sys_normal_disable',channelOrder.status)}">
                </div>
		   </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "channel/channelOrder";
		$("#form-channelOrder-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-channelOrder-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
